package com.jml;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.multipart.MultipartFile;


@SpringBootApplication
@ImportResource(locations = {"classpath:spring-common.xml"})
@EnableTransactionManagement   //表示开启事务
@EnableScheduling   //表示启动调度
public class StartSpringBootMain /*extends SpringBootServletInitializer*/ {

	/*@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(StartSpringBootMain.class);
	}*/

	public static void main(String[] args) {
		SpringApplication.run(StartSpringBootMain.class, args);
	}

}
